<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStoreCopyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('store_copy', function (Blueprint $table) {

            $table->bigIncrements('id');
            $table->timestamps();
            $table->string('name')->comment('门店名称');
            $table->string('province')->comment('省');
            $table->string('city')->comment('市');
            $table->string('area')->comment('区（县）');
            $table->string('phone')->comment('电话');
            $table->string('detail')->comment('详细地址');
            $table->integer('order_id')->unsigned()->comment('订单id');

        });



        DB::statement("ALTER TABLE `store_copy` COMMENT='门店副本表'");//表注释
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('store_copy');
    }
}
